from peewee import *
from app.core.config import Config

cf = Config.init()
"""
数据库链接配置
"""
mysql_db = MySQLDatabase(cf.get("mysql", "database"),
                         host=cf.get("mysql", "host"),
                         user=cf.get("mysql", "username"),
                         passwd=cf.get("mysql", "password"),
                         port=cf.getint("mysql", "port"),
                         charset="utf8mb4")

